const testData = [
  {
    id: '1',
    shape: 'dag-node',
    x: 290,
    y: 110,
    data: {
      label: '读数据',
      status: 'success',
    },
    ports: [
      {
        id: '1-1',
        group: 'bottom',
      },
    ],
  },
  {
    id: '2',
    shape: 'dag-node',
    x: 290,
    y: 225,
    data: {
      label: '逻辑回归',
      status: 'success',
    },
    ports: [
      {
        id: '2-1',
        group: 'top',
      },
      {
        id: '2-2',
        group: 'bottom',
      },
      {
        id: '2-3',
        group: 'bottom',
      },
    ],
  },
  {
    id: '3',
    shape: 'dag-node',
    x: 170,
    y: 350,
    data: {
      label: '模型预测',
      status: 'success',
    },
    ports: [
      {
        id: '3-1',
        group: 'top',
      },
      {
        id: '3-2',
        group: 'bottom',
      },
    ],
  },
  {
    id: '4',
    shape: 'dag-node',
    x: 450,
    y: 350,
    data: {
      label: '读取参数',
      status: 'success',
    },
    ports: [
      {
        id: '4-1',
        group: 'top',
      },
      {
        id: '4-2',
        group: 'bottom',
      },
    ],
  },
  {
    id: '5',
    shape: 'dag-edge',
    source: {
      cell: '1',
      port: '1-1',
    },
    target: {
      cell: '2',
      port: '2-1',
    },
    zIndex: 0,
  },
  {
    id: '6',
    shape: 'dag-edge',
    source: {
      cell: '2',
      port: '2-2',
    },
    target: {
      cell: '3',
      port: '3-1',
    },
    zIndex: 0,
  },
  {
    id: '7',
    shape: 'dag-edge',
    source: {
      cell: '2',
      port: '2-3',
    },
    target: {
      cell: '4',
      port: '4-1',
    },
    zIndex: 0,
  },
];
const initData = {
  nodes: [
    {
      id: '16037167838161',
      name: '算法组件100',
      inPorts: [
        {
          tableName: 'germany_credit_data',
          sequence: 1,
          description: '输入100',
          id: '1603716783816_in_1',
        },
        {
          tableName: 'germany_credit_data',
          sequence: 2,
          description: '输入200',
          id: '1603716783816_in_2',
        },
      ],
      outPorts: [
        {
          tableName: 'germany_credit_data',
          sequence: 1,
          description: '输出表100',
          id: '1603716783816_out_1',
        },
        {
          tableName: 'germany_credit_data',
          sequence: 2,
          description: '输出表200',
          id: '1603716783816_out_2',
        },
      ],
      positionX: -100,
      positionY: -200,
      codeName: 'source_11111',
      catId: 1,
      nodeDefId: 111111,
      category: 'source',
      status: 3,
      groupId: 0,
    },
    {
      id: '16037167862051',
      name: '算法组件200',
      inPorts: [
        {
          tableName: 'germany_credit_data',
          sequence: 1,
          description: '输入100',
          id: '1603716786205_in_1',
        },
        {
          tableName: 'germany_credit_data',
          sequence: 2,
          description: '输入2',
          id: '1603716786205_in_2',
        },
      ],
      outPorts: [
        {
          tableName: 'germany_credit_data',
          sequence: 1,
          description: '输出表100',
          id: '1603716786205_out_1',
        },
        {
          tableName: 'germany_credit_data',
          sequence: 2,
          description: '输出表200',
          id: '1603716786205_out_2',
        },
      ],
      positionX: -369,
      positionY: -161,
      codeName: 'source_11111',
      catId: 1,
      nodeDefId: 111111,
      category: 'source',
      status: 3,
      groupId: 0,
    },
    {
      id: '16037167862051qqq',
      name: '算法组件200',
      inPorts: [
        {
          tableName: 'germany_credit_data',
          sequence: 1,
          description: '输入100',
          id: '1603716786205_in_1',
        },
        {
          tableName: 'germany_credit_data',
          sequence: 2,
          description: '输入2',
          id: '1603716786205_in_2',
        },
      ],
      outPorts: [
        {
          tableName: 'germany_credit_data',
          sequence: 1,
          description: '输出表100',
          id: '1603716786205_out_1',
        },
        {
          tableName: 'germany_credit_data',
          sequence: 2,
          description: '输出表200',
          id: '1603716786205_out_2',
        },
      ],
      positionX: -444,
      positionY: -444,
      codeName: 'source_11111',
      catId: 1,
      nodeDefId: 111111,
      category: 'source',
      status: 3,
      groupId: 0,
    },
  ],
  links: [
    {
      source: '16037167838161',
      target: '16037167862051',
      outputPortId: '1603716783816_out_1',
      inputPortId: '1603716786205_in_1',
    },
  ],
};
const initData1 = {
  nodes: [
    {
      id: '1603716783816',
      name: '算法组件1',
      inPorts: [
        {
          tableName: 'germany_credit_data',
          sequence: 1,
          description: '输入1',
          id: '1603716783816_in_1',
        },
        {
          tableName: 'germany_credit_data',
          sequence: 2,
          description: '输入2',
          id: '1603716783816_in_2',
        },
      ],
      outPorts: [
        {
          tableName: 'germany_credit_data',
          sequence: 1,
          description: '输出表1',
          id: '1603716783816_out_1',
        },
        {
          tableName: 'germany_credit_data',
          sequence: 2,
          description: '输出表2',
          id: '1603716783816_out_2',
        },
      ],
      positionX: -200,
      positionY: -300,
      codeName: 'source_11111',
      catId: 1,
      nodeDefId: 111111,
      category: 'source',
      status: 3,
      groupId: 0,
    },
    {
      id: '1603716786205',
      name: '算法组件2',
      inPorts: [
        {
          tableName: 'germany_credit_data',
          sequence: 1,
          description: '输入1',
          id: '1603716786205_in_1',
        },
        {
          tableName: 'germany_credit_data',
          sequence: 2,
          description: '输入2',
          id: '1603716786205_in_2',
        },
      ],
      outPorts: [
        {
          tableName: 'germany_credit_data',
          sequence: 1,
          description: '输出表1',
          id: '1603716786205_out_1',
        },
        {
          tableName: 'germany_credit_data',
          sequence: 2,
          description: '输出表2',
          id: '1603716786205_out_2',
        },
      ],
      positionX: -369,
      positionY: -161,
      codeName: 'source_11111',
      catId: 1,
      nodeDefId: 111111,
      category: 'source',
      status: 3,
      groupId: 0,
    },
  ],
  links: [
    {
      source: '1603716783816',
      target: '1603716786205',
      outputPortId: '1603716783816_out_1',
      inputPortId: '1603716786205_in_1',
    },
  ],
};

export { testData, initData, initData1 };
